package cn.mulanbay.admin.api.web.bean.request.user;

import cn.mulanbay.persistent.enums.Sex;
import cn.mulanbay.persistent.enums.UserLevel;
import cn.mulanbay.persistent.enums.UserStatus;
import cn.mulanbay.common.bean.PageSearch;
import cn.mulanbay.persistent.query.Operator;
import cn.mulanbay.persistent.query.Query;

public class UserSearch extends PageSearch {

    @Query(column = "username",op= Operator.LIKE)
    private String name;

    @Query(column = "status",op= Operator.EQ)
    private UserStatus status;

    @Query(column = "sex",op= Operator.EQ)
    private Sex sex;

    @Query(column = "level",op= Operator.EQ)
    private UserLevel level;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public UserStatus getStatus() {
        return status;
    }

    public void setStatus(UserStatus status) {
        this.status = status;
    }

    public Sex getSex() {
        return sex;
    }

    public void setSex(Sex sex) {
        this.sex = sex;
    }

    public UserLevel getLevel() {
        return level;
    }

    public void setLevel(UserLevel level) {
        this.level = level;
    }
}
